Skip to content

Fix declaration for Array.prototype[Symbol.unscopables]#36540

Merged
rbuckton merged 1 commit intomasterfrom
fix34610
Jan 31, 2020
Merged

Fix declaration for Array.prototype[Symbol.unscopables]#36540
rbuckton merged 1 commit intomasterfrom
fix34610

Conversation

@rbuckton
Copy link
Contributor

Fixes the incorrect definition of Array.prototype[Symbol.unscopables]

Fixes #34610

* when they will be absent when used in a 'with' statement.
*/
[Symbol.unscopables](): {
[Symbol.unscopables]: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should’ve been applied to src/lib/lib.es2015.symbol.wellknown.d.ts.


I’m fixing that in #42566.

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Array.prototype[Symbol.unscopables] is not a function

4 participants